package org.item.common.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.item.common.enumbean.RoleStatus;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("sys_role")
public class SysRole implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("role_name")
    private String   rolename;;
    @TableField("role_key")
    private String rolekey;
    private RoleStatus status;
    @TableField("updated_at")
    private LocalDateTime updatedat;

    private List<SysPermission> permissions;

}
